<?php
	class ZhenglistAction extends BaseAction{
			public function index(){
			$id = $_GET['z_id'];
			$result =M("zheng")->join("vip ON vip.v_id = zheng.z_broker")->where("z_id=$id")->join("district ON district.d_id = zheng.z_district")->select();			
			$v_id = $result['0']['v_id'];
			$z_name = $result['0']['z_name'];

			$rent = M("zheng")->where("z_broker=$v_id")->limit("15")->field("z_name,z_d_rent,z_id")->select();
			$this->assign("rent",$rent);
			$newtj = M("zheng")->where("is_jingpin")->order("z_id desc")->limit(15)->field("z_name,z_d_rent,z_id")->select();

			$lou = M("zheng")->where("z_name = '$z_name'")->select();
			$this->assign("lou",$lou);
			$this->assign("result",$result);
			$this->assign("newtj",$newtj);
			//var_dump($newtj);exit;
			$this->display();
		}
		
		
	
	
	}


?>